package com.yn.sys.controller;

import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/hello")
@Slf4j
public class Hello {

    @RequestMapping("/hello2")
    public String loginUser (HttpServletRequest request,@RequestBody JSONObject param ) {
        log.error("xxxxxxxx {}", JSONObject.toJSONString(param));
        return "res";
    }
}
